package com.ymh.spring.learn.sw.demo5;

import org.springframework.stereotype.Service;

@Service
public class PersonSpring implements Speakable {

	@SuppressWarnings("static-access")
	public void sayHi() {

		try {
			Thread.currentThread().sleep(30);
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
		System.out.println("Hi!");

	}

	@SuppressWarnings("static-access")
	public void sayBye() {
		try {
			Thread.currentThread().sleep(10);
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
		System.out.println("Bye!");
	}

}
